package dk.cs.wolverine.client;

import java.util.ArrayList;

import com.google.gwt.user.client.rpc.RemoteService;
import com.google.gwt.user.client.rpc.RemoteServiceRelativePath;

import dk.cs.wolverine.shared.Answer;
import dk.cs.wolverine.shared.Question;
import dk.cs.wolverine.shared.ResultSet;
import dk.cs.wolverine.shared.Section;

/**
 * The client side stub for the RPC service.
 */
@RemoteServiceRelativePath("service")
public interface QuestionnaireService extends RemoteService {
	ResultSet getResultSet(String user);
	ArrayList<ResultSet> getResultSets();
	ArrayList<Section> getSections();
	void addAnswer(Question question, String answer);
	void addTextQuestion(Section section, String name);
	void addSection(Section section);
	void addSelectionQuestion(Section section, String name, ArrayList<Answer> answers);
}